#pragma once
#include <d3dx9.h>
#include "Windows.h"
#define MAX_LINES_TO_RENDER 10000
#define NUM_VERTICES_IN_LINE 6
#define NUM_TRIANGLES_IN_LINE 2
struct Line
{
    D3DXVECTOR3 StartPos;
	D3DXVECTOR3 EndPos;
    DWORD color;
	float LWidth; // QSize
};
class cMain;
class cLineRenderer
{
	cMain & Main;
	LPDIRECT3DVERTEXBUFFER9 g_pVB;
	Line Lines[MAX_LINES_TO_RENDER];
	int NumLinesToRender;

public:

	cLineRenderer(cMain & Main);
	~cLineRenderer();
	void Restart();
	void Render();
	void AddLineToRender(D3DXVECTOR3 StartPos, D3DXVECTOR3 EndPos, DWORD color, float LWidth);
};